package me.bbvip.chat.entry;

/**
 * @author yonghui.cui
 * @version 1.0  2015/2/26
 */
public class MessageRequest {
    private String cmd;
    private String msg;
    private String direct;
    private String source;

    public MessageRequest() {
    }

    public MessageRequest(String cmd, String msg, String direct) {
        this.cmd = cmd;
        this.msg = msg;
        this.direct = direct;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getDirect() {
        return direct;
    }

    public void setDirect(String direct) {
        this.direct = direct;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("MessageRequest{");
        sb.append("cmd='").append(cmd).append('\'');
        sb.append(", msg='").append(msg).append('\'');
        sb.append(", direct='").append(direct).append('\'');
        sb.append(", source='").append(source).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
